package cn.zf233.xcloud.entity;

import cn.zf233.xcloud.commom.annotations.FillCreate;
import cn.zf233.xcloud.commom.annotations.FillUpdate;

import java.io.Serializable;

/**
 * Created by zf233 on 2021/2/14
 */
public class Share implements Serializable {

    private static final long serialVersionUID = -2400480259585532823L;
    private Long id;
    private Long userId;
    private Long fileId;
    private String qrLink;
    private Long qrLinkTime;
    private Long qrLinkTimeout;
    private String qrLinkCheckCode;
    private String shareLink;
    private Long shareLinkTime;
    private Long shareLinkTimeout;
    private String shareLinkCheckCode;
    @FillCreate
    private Long createTime;
    @FillUpdate
    private Long updateTime;

    public Share() {
    }

    public Share(Long id, Long userId, Long fileId, String qrLink, Long qrLinkTime, Long qrLinkTimeout, String qrLinkCheckCode, String shareLink, Long shareLinkTime, Long shareLinkTimeout, String shareLinkCheckCode, Long createTime, Long updateTime) {
        this.id = id;
        this.userId = userId;
        this.fileId = fileId;
        this.qrLink = qrLink;
        this.qrLinkTime = qrLinkTime;
        this.qrLinkTimeout = qrLinkTimeout;
        this.qrLinkCheckCode = qrLinkCheckCode;
        this.shareLink = shareLink;
        this.shareLinkTime = shareLinkTime;
        this.shareLinkTimeout = shareLinkTimeout;
        this.shareLinkCheckCode = shareLinkCheckCode;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getFileId() {
        return fileId;
    }

    public void setFileId(Long fileId) {
        this.fileId = fileId;
    }

    public String getQrLink() {
        return qrLink;
    }

    public void setQrLink(String qrLink) {
        this.qrLink = qrLink;
    }

    public Long getQrLinkTime() {
        return qrLinkTime;
    }

    public void setQrLinkTime(Long qrLinkTime) {
        this.qrLinkTime = qrLinkTime;
    }

    public Long getQrLinkTimeout() {
        return qrLinkTimeout;
    }

    public void setQrLinkTimeout(Long qrLinkTimeout) {
        this.qrLinkTimeout = qrLinkTimeout;
    }

    public String getQrLinkCheckCode() {
        return qrLinkCheckCode;
    }

    public void setQrLinkCheckCode(String qrLinkCheckCode) {
        this.qrLinkCheckCode = qrLinkCheckCode;
    }

    public String getShareLink() {
        return shareLink;
    }

    public void setShareLink(String shareLink) {
        this.shareLink = shareLink;
    }

    public Long getShareLinkTime() {
        return shareLinkTime;
    }

    public void setShareLinkTime(Long shareLinkTime) {
        this.shareLinkTime = shareLinkTime;
    }

    public Long getShareLinkTimeout() {
        return shareLinkTimeout;
    }

    public void setShareLinkTimeout(Long shareLinkTimeout) {
        this.shareLinkTimeout = shareLinkTimeout;
    }

    public String getShareLinkCheckCode() {
        return shareLinkCheckCode;
    }

    public void setShareLinkCheckCode(String shareLinkCheckCode) {
        this.shareLinkCheckCode = shareLinkCheckCode;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Share{" +
                "id=" + id +
                ", userId=" + userId +
                ", fileId=" + fileId +
                ", qrLink='" + qrLink + '\'' +
                ", qrLinkTime=" + qrLinkTime +
                ", qrLinkTimeout=" + qrLinkTimeout +
                ", qrLinkCheckCode='" + qrLinkCheckCode + '\'' +
                ", shareLink='" + shareLink + '\'' +
                ", shareLinkTime=" + shareLinkTime +
                ", shareLinkTimeout=" + shareLinkTimeout +
                ", shareLinkCheckCode='" + shareLinkCheckCode + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}
